﻿Imports OpenQA.Selenium.Remote
Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        driver = New RemoteWebDriver(New Uri("http://localhost:7055/hub/"), DesiredCapabilities.Firefox())
        Me.Button1.Hide()
        Me.Button2.Show()
        Me.RichTextBox1.Text = "Now Press the new button."
    End Sub

    Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
        driver.Navigate.GoToUrl("http://google.com")
        Me.Button2.Hide()
        Me.RichTextBox1.Text = "Congrats! You've just remotely controlled a running Firefox!"
    End Sub

End Class
